	var browserOK = false;
	var pics; 
 	pics = new Array();
	var objCount = 0;
	
	function preload(name, first, second) {     
		pics[objCount] = new Array(3);
	  	pics[objCount][0] = new Image();
	  	pics[objCount][0].src = first;
	  	pics[objCount][1] = new Image();
	  	pics[objCount][1].src = second;
	  	pics[objCount][2] = name;
	  	objCount++;
	}
	
	function on(name)
	{	 
	  for (i = 0; i < objCount; i++)
	  {
	   if (document.images[pics[i][2]] != null)
	    if (name != pics[i][2])
	    { 
	      
	     document.images[pics[i][2]].src = pics[i][0].src;
	    }
	    else
	    {
	     
	     document.images[pics[i][2]].src = pics[i][1].src;
	    }	 
	 }
	}

	function off()
	{	 
	  for (i = 0; i < objCount; i++)
	  {
	   
	   if (document.images[pics[i][2]] != null) 
	   document.images[pics[i][2]].src = pics[i][0].src;
	  }	 
	}


preload("link1", "templates/system_img/anthill_logo.png", "templates/system_img/anthill_logo_o.png");
preload("link2", "templates/system_img/send.gif", "templates/system_img/send_o.gif");

preload("link3", "templates/system_img/menu/portfolio.png", "templates/system_img/menu/portfolio_o.png");
preload("link4", "templates/system_img/menu/servis.png", "templates/system_img/menu/servis_o.png");
preload("link5", "templates/system_img/menu/myphoto.png", "templates/system_img/menu/myphoto_o.png");
preload("link6", "templates/system_img/menu/contacts.png",  "templates/system_img/menu/contacts_o.png");



